package messages;

import game.MatchStatistics;
import game.Player;

import java.util.List;


/**
 * UserDetailsReplyMessage
 * 
 * Message sent by the server in reply to an user details request
 */
public class UserDetailsReplyMessage extends Message {

	public UserDetailsReplyMessage(Player player, List<MatchStatistics> oldMatchs, List<MatchStatistics> activeMatchs) {
		super();
		this.player = player;
		this.oldMatchs = oldMatchs;
		this.activeMatchs = activeMatchs;
	}


	public Player getPlayer() {
		return player;
	}
	
	
	public List<MatchStatistics> getOldMatchs() {
		return oldMatchs;
	}

	
	public List<MatchStatistics> getActiveMatchs() {
		return activeMatchs;
	}


	@Override
	public String toString() {
		return super.toString() + "(player=" + this.player + ")";
	}
	

	private Player player;
	private List<MatchStatistics> oldMatchs;
	private List<MatchStatistics> activeMatchs;

	private static final long serialVersionUID = 1L;
}
